package com.qf.product.service.impl;

import com.qf.common.dto.product.CategoryDto;
import com.qf.product.mapper.CategoryMapper;
import com.qf.product.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author KING
 * @ClassName: com.qf.product.service.impl.CategoryServiceImpl
 * @Description: 该类的功能描述
 * @date: 2021/11/10 21:59
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryDto> getCategories() {
        List<CategoryDto> categoryDtoList = categoryMapper.getCategories();
        return categoryDtoList;
    }
}
